import request from "@/config/request"

interface loginParams {
    username: string;
    password: string;
}
// 后台登录
export const login = (params: loginParams) => {
    return request.post("/admin/account/login", {}, {
        params: params  // 自动作为 query 发送
    })
}